import { FilterItem } from '@/components/FilterBar/types'
import { ref } from 'vue'
export const filterOptions = ref<Array<FilterItem>>([
  {
    label: '物品类型',
    prop: 'goodsType',
    type: 'select',
    defaultValue: '',
    inputProps: {
      clearable: true,
      placeholder: '请选择物品类型',
      options: [
        // { label: '全部', value: 'all' }
      ]
    }
  },
  {
    label: '物品名称',
    prop: 'goodsName',
    type: 'input',
    inputProps: {
      clearable: true,
      placeholder: '请输入物品名称'
    }
  },
  {
    label: '失主姓名',
    prop: 'lostName',
    type: 'input',
    defaultValue: '',
    inputProps: {
      placeholder: '请输入失主姓名',
      options: [
        { label: '全部', value: '' }
      ]
    }
  },
  {
    label: '遗失地',
    prop: 'lostPlace',
    type: 'input',
    defaultValue: '',
    inputProps: {
      placeholder: '请输入遗失地',
      options: [
        { label: '全部', value: '' }
      ]
    }
  },
  {
    label: '航站楼',
    prop: 'lostTerminal',
    type: 'select',
    defaultValue: [],
    inputProps: {
      // 控制是否显示权限功能
      showCheckAll: false,
      options: []
    }
  },
  {
    label: '遗失时间',
    prop: 'lostTime',
    type: 'datePicker',
    defaultValue: [],
    inputProps: {
      placeholder: '请选择遗失时间',
      type: 'daterange',
      'value-format': 'YYYY-MM-DD'
    }
  }
])
